package org.reenscape.skill;
import org.reenscape.model.*;
import org.reenscape.lib.*;
import org.reenscape.updater.*;
public class Crafting {

			public void cut(int id, PacketParser p3){
				switch(id){
					case 1625: cut(1, id, 15, 1609, "Opal", p3); break;
					case 1627: cut(13, id, 20, 1611, "Jade", p3); break;
					case 1629: cut(16, id, 25, 1613, "Red Topaz", p3); break;
					case 1623: cut(20, id, 50, 1607, "Sapphire", p3); break;
					case 1621: cut(27, id, 68, 1605, "Emerald", p3); break;
					case 1619: cut(34, id, 85, 1603, "Ruby", p3); break;
					case 1617: cut(43, id, 108, 1601, "Diamond", p3); break;
					case 1631: cut(55, id, 138, 1615, "Dragonstone", p3); break;
					case 6571: cut(67, id, 168, 6573, "Onyx", p3); break;
					default: p3.sendMessage("Nothing interesting happens.");
				}
			}

			public void cut(int reqLvl, int id, int GemXP, int GemFin, String GemName, PacketParser p3){
					if(p3.playerLevel[Skill.CRAFTING] >= reqLvl) {
						p3.Animation(885);
						p3.sendMessage("You cut the rock into a dazzling "+GemName+" gem.");
						p3.deleteItem(id, p3.GetItemSlot(id), 1);
						p3.addItem(GemFin,1);
						p3.addSkillXP(GemXP, Skill.CRAFTING);
					} else {
						p3.sendMessage("You need a crafting level of "+reqLvl+" to cut this gem.");
					}
			}

}